package com.flexpasta.service;

import java.util.ArrayList;
import java.util.List;

import com.flexpasta.vo.PastaType;

/**
 * This is an example remote service class that you can call from flex
 * @author Brian Telintelo
 *
 */
public class PastaService {

	public List<PastaType> getPastaTypes()
	{
		List<PastaType> myPasta = new ArrayList<PastaType>();
		PastaType pt1 = new PastaType();
		pt1.setId(1);
		pt1.setName("Tortellini");
		myPasta.add(pt1);
		
		PastaType pt2 = new PastaType();
		pt2.setId(2);
		pt2.setName("Penne");
		myPasta.add(pt2);
		
		PastaType pt3 = new PastaType();
		pt3.setId(3);
		pt3.setName("Spaghetti");
		myPasta.add(pt3);
		return myPasta;
	}
	
	public PastaType updatePastaType(PastaType pastaType)
	{
		return pastaType;
	}
}
